#include <iostream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <functional>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>

using namespace std;

int main(int atrgc, char** argv)
{
	int d;
	std::stringstream s;
	s<<"123";
	s>>d;
	cout<<d<<endl;

	double f=.123,g;
	s<<f;
	s>>g;
	cout<<g<<endl;

	return 0;
}
